package net.llz.chain;

public abstract class RiskControlManager {

    protected  String name;

    /**
     * 更严格的风控策略
     */
    protected RiskControlManager superior;

    public RiskControlManager(String name){
        this.name = name;
    }


    /**
     * 设置更严格的风控策略
     * @param superior
     */
    public void setSuperior(RiskControlManager superior){
        this.superior = superior;
    }


    /**
     * 处理请求
     * @param request
     */
    public abstract void handlerRequest(Request request);

}
